package com.oa.admin.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.oa.admin.dto.WorkReportListDTO;
import com.oa.admin.entity.WorkReport;
import com.oa.admin.mapper.WorkReportMapper;
import com.oa.admin.service.IWorkReportService;
import com.oa.admin.vo.WorkReportListVO;
import com.oa.core.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WorkReportServiceImpl extends ServiceImpl<WorkReportMapper, WorkReport> implements IWorkReportService {

    @Autowired
    private WorkReportMapper workReportMapper;

    @Override
    public PageResult<WorkReportListVO> findWorkReport(WorkReportListDTO workReportListDTO) {
        Page page = workReportListDTO.getPage();
        return new PageResult<>(workReportMapper.findWorkReport(page, workReportListDTO), page);
    }

    
}
